package com.project.weather.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.annotation.Order;

/**
 * 文件上传下载配置类
 */
@PropertySource("classpath:file.properties")
@Order(1)
@Configuration
public class FileConfig {

    @Value("${file.imagesPath}")
    private String UPLOAD_FILE_IMAGE_PATH;

    @Value("${file.filePath}")
    private String UPLOAD_FILE_PATH;

    public String getUPLOAD_FILE_IMAGE_PATH() {
        return UPLOAD_FILE_IMAGE_PATH;
    }

    public void setUPLOAD_FILE_IMAGE_PATH(String UPLOAD_FILE_IMAGE_PATH) {
        this.UPLOAD_FILE_IMAGE_PATH = UPLOAD_FILE_IMAGE_PATH;
    }

    public String getUPLOAD_FILE_PATH() {
        return UPLOAD_FILE_PATH;
    }

    public void setUPLOAD_FILE_PATH(String UPLOAD_FILE_PATH) {
        this.UPLOAD_FILE_PATH = UPLOAD_FILE_PATH;
    }
}
